setfenv(1, require'winapi')
require'winapi.winuser'

ffi.cdef[[
HWND GetActiveWindow(void);
]]

GetActiveWindow = ffi.C.GetActiveWindow

if not ... then
print(GetActiveWindow())
end
